package com.laowang.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户申请提现对象 my_cyh_withdraw
 *
 * @author laowang
 * @date 2023-06-09
 */
@NoArgsConstructor
@Data
public class MyCyhWithdraw implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    @Excel(name = "序号")
    private Integer id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @ApiModelProperty(value = "用户id", required = false)
    private Integer userId;

    @Excel(name = "姓名")
    private String realName;


    /**
     * 提现的金币数量
     */
    @NotNull(message = "金币不能为空")
    @Excel(name = "提现金币数量")
    @ApiModelProperty(value = "提现的金币数量", required = false)
    private Integer gold;



    /**
     * 后台操作用户
     */
    //@Excel(name = "后台操作用户")
    @ApiModelProperty(value = "后台操作用户", required = false)
    private Long userManager;

    /**
     * 0申请中,1提现完成,2提现失败
     */
    @Excel(name = "提现状态",readConverterExp = "0=申请中,1=提现完成,2=提现失败")
    @ApiModelProperty(value = "0申请中,1提现完成,2提现失败", required = false)
    private Integer status;

    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    private String remark;



    @Transient
    private String collectionCode;
}
